package br.com.dufs.mvc.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.dufs.mvc.dao.interfaces.ComposicaoFamiliarDAO;
import br.com.dufs.mvc.model.ComposicaoFamiliar;
import com.fscoreunipe.mvc.service.interfaces.ServiceGenericoBO;

@Service("composicaoFamiliarBO")
public class ComposicaoFamiliarBOService implements
		ServiceGenericoBO<ComposicaoFamiliar, String> {

	@Autowired
	ComposicaoFamiliarDAO objDAO;

	@Override
	public ComposicaoFamiliar salvar(ComposicaoFamiliar object) {
		return objDAO.salvar(object);
	}

	@Override
	public ComposicaoFamiliar pesquisarPorId(String id) {
		return objDAO.pesquisarPorId(id);
	}

	@Override
	public ComposicaoFamiliar atualizar(ComposicaoFamiliar object) {
		return objDAO.atualizar(object);
	}

	@Override
	public void excluir(ComposicaoFamiliar object) {
		objDAO.excluir(object);
	}

	@Override
	public List<ComposicaoFamiliar> todos() {
		return objDAO.todos();
	}

}